package com.example.arthas.controller;

import cn.hutool.core.lang.UUID;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/arthas")
public class ArthasTestController {

    @RequestMapping("/test")
    public Object reduce(@RequestBody Map<String, Object> request) {
        request.put("uuid", UUID.fastUUID().toString());
        return JSONUtil.toJsonStr(request);
    }


}
